<!DOCTYPE html>
<HTML>
<HEAD><meta name="viewport" content="width=device-width, initial-scale=1">
<Title>JsChartViewer.setAutoHide</Title>
<link type='text/css' rel='Stylesheet' href="maxchartapi.css" />
</HEAD>
<body bgcolor="#FFFFFF" text="#000000" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">

<p class="heading0">ChartDirector 7.0 (Java Edition)</p>
<p class="heading1"><a href="JsChartViewer.htm">JsChartViewer</a>.<wbr>setAutoHide</p>
<hr class="separator">
<p class="heading2a">Usage</p>
<div class="content">
setAutoHide(id, eventId)
</div>
<p class="heading2">Description</p>
<div class="content">
Hides one or more objects drawn by JsChartViewer when a certain event occurs.<br><br>
This method automatically calls <a href="JsChartViewer.hideObj.htm">JsChartViewer.hideObj</a> when a certain event occurs. For example, it can be used to hide the crosshair cursor or all objects drawn by JsChartViewer when the <a href="JsChartViewer.MouseOutPlotArea.htm">JsChartViewer.MouseOutPlotArea</a> event occurs. Using this method can avoid the need to create a separate event handler.<br><br>
This method only applies to the first occurrence of the specified event after calling this method.<br><br>
<a href="JsChartViewer.removeAutoHide.htm">JsChartViewer.removeAutoHide</a> can be used to cancel the automatic action set up by this method.
</div>
<p class="heading2">Arguments</p>
<div class="content">
<div style="width:100%;box-sizing:border-box;">
<table border="1" cellpadding="5" cellspacing="0" width="100%"> 
<tr>
<th width="19%">Argument</th><th width="19%">Default</th><th>Description</th>
</tr>
<tr>
<td>id</td><td>(Mandatory)</td><td>The id argument to be used to call <a href="JsChartViewer.hideObj.htm">JsChartViewer.hideObj</a>.</td></tr><tr><td>eventId</td><td>(Mandatory)</td><td>A text string representing the event that triggers the call to <a href="JsChartViewer.hideObj.htm">JsChartViewer.hideObj</a>. An example is "MouseOutPlotArea" (for the <a href="JsChartViewer.MouseOutPlotArea.htm">JsChartViewer.MouseOutPlotArea</a> event).</td>
</tr>
</table>
</div>
</div>
<p class="heading2">Return Value</p>
<div class="content">
None
</div>
<br><hr class="separator">
<div class="copyright">&copy; 2022 Advanced Software Engineering Limited. All rights reserved.</div>
</body>
</HTML>
